import { connect } from 'react-redux'
import MyBeans from '../../../../views/My/MyUtils/MyBeans'

function mapStateToProps(state: any) {
    return {
        userInfo: state.user.userInfo,
        userBeans: state.user.userBeans
    }
}

function mapDispatchToProps(dispatch: (obj: any) => void) {
    return {
        'SET_MYUTILS_BEANS': (data: any) => {
            dispatch({ type: 'SET_MYUTILS_BEANS', data })
        },
        'SET_USER_INFO': (data: any) => {
            dispatch({ type: 'SET_USER_INFO', data })
        },
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(MyBeans)